package com.yonyou.iuap.jxzy.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Random;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.hutool.core.date.DateUtil;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yonyou.iuap.baseservice.bpm.entity.AbsBpmModel;
import com.yonyou.iuap.baseservice.entity.annotation.CodingEntity;
import com.yonyou.iuap.baseservice.support.condition.Condition;
import com.yonyou.iuap.baseservice.support.generator.GeneratedValue;

@JsonIgnoreProperties(ignoreUnknown = true)
@Table(name = "jx_pounddeliver_view")

@CodingEntity(codingField="")
public class PoundderLiver extends AbsBpmModel implements Serializable{

	
	@Id
	@GeneratedValue
    @Condition
	private String poundNo;//主键 磅单号
	
	@Condition
	@Column(name="planNo")
	private String planNo;        //计划单号
	
	@Condition
	@Column(name="weiCompleMark")
	private Boolean weiCompleMark;        //磅单状态 
	
	@Condition
	@Column(name="auditStatus")
	private String auditStatus;//审核状态
	
	@Condition
	@Column(name="licensePlateNo")
	private String licensePlateNo;        //车牌号
	
	@Condition
	@Column(name="caseNo")
	private String caseNo;        //箱号
	
	@Condition
	@Column(name="materialpk")
	private String materialpk;        //物料主键
	
	@Condition
	@Column(name="materialcode")
	private String materialcode;        //物料编码
	
	@Condition
	@Column(name="materialVariety")
	private String materialVariety;        //物料品种
	
	@Condition
	@Column(name="goodsName")
	private String goodsName;        //货物名称
	
	@Condition
	@Column(name="supplypk")
	private String supplypk;        //供应商
	
	@Condition
	@Column(name="supplycode")
	private String supplycode;        //供应商编码
	
	@Condition
	@Column(name="supplyUnit")
	private String supplyUnit;        //供货单位
	  
	@Condition
	@Column(name="purchpk")
	private String purchpk;        //库存组织主键
	
	@Condition
	@Column(name="purchcode")
	private String purchcode;        //库存组织编码
	
	@Condition
	@Column(name="purchasing")
	private String purchasing;        //总箱数
	
	@Condition
	@Column(name="customsNo")
	private String customsNo;        //海关单号
	
	@Condition
	@Column(name="totalEntryNo")
	private String totalEntryNo;        //总来数(吨)
	
	@Condition
	@Column(name="realNo")
	private String realNo;        //实来数(吨)
	
	@Condition
	@Column(name="totalPackageNo")
	private String totalPackageNo;        //总件数  TODO
	
	@Condition
	@Column(name="pk_ew")
	private String pk_ew;        //均衡器主键
	
	@Condition
	@Column(name="vcode")
	private String vcode;        //均衡器编码
	
	@Condition
	@Column(name="meterPoint")
	private String meterPoint;        //计量点
	
	@Condition
	@Column(name="estimatedTare")
	private String estimatedTare;        //估算皮重(吨)
	
	@Condition
	@Column(name="estimatedWeight")
	private String estimatedWeight;        //估算重量(吨)
	
	@Condition
	@Column(name="grossWeight")
	private String grossWeight;        //毛重(吨)
	
	@Condition
	@Column(name="tareWeight")
	private String tareWeight;        //皮重(吨)


	@Condition
	@Column(name="netWeight")
	private String netWeight;        //净重(吨)

	@Condition
	@Column(name="shortWeight")
	private String shortWeight;        //短重(吨)
	
	@Condition
	@Column(name="singlePieceWeight")
	private String singlePieceWeight;        //单件重(吨)
	
	@Condition
	@Column(name="grossWeightTime")
	private String grossWeightTime;        //称毛重时间
	
	@Condition
	@Column(name="tareWeightTime")
	private String tareWeightTime;        //称皮重时间
	
	@Condition
	@Column(name="rowNo")
	private String rowNo;        //排数
	
	@Condition
	@Column(name="columnNo")
	private String columnNo;        //列数
	
	@Condition
	@Column(name="layerNo")
	private String layerNo;        //层数
	
	@Condition
	@Column(name="samplingLocation")
	private String samplingLocation;        //重样位置
	
	@Condition
	@Column(name="samplingLocation2")
	private String samplingLocation2;        //重样位置
	
	/**
	 * 
	 * @return
	 */
	
	@Condition
	@Column(name="vdef3")
	private String vdef3;//总包数
	
	@Condition
	@Column(name="vdef4")
	private String vdef4;//加抽位置
	
	@Condition
	@Column(name="vdef6")
	private String vdef6;//抽样位置
	
	@Condition
	@Column(name="name")
	private String name;//部门名称
	
	private String vbdef9;
	private String vbdef6;//抽样区
	
	private String averagewaterratio;//测试仪 含水分比
	
	private String serialNo;
	
	
	private String cmaterialvid;//物料主键

	
	private String firstdata;
	private String pk_org;
	private String isFirst;
	
	/**
	 * 磅单子表插入的数据
	 * 1.单价	 4.平均扣水分重	 5.平均扣杂质重 	13.堆号 	14.开包件数	 15.平均含水分比 	16.平均含杂质比 	17.质量等级
	 */
	private String vbdef1;
	private String vbdef4;
	
	private String vbdef5;
	private String vbdef13;
	
	private String vbdef14;
	private String vbdef15;
	
	private String vbdef16;
	private String vbdef17;
	
	private String vbdef18;
	
	private String pk_poundbill;//磅单主键
	
	private String forkliftNo;//叉车工工号
	
	
	
	
	
	
	
	public String getForkliftNo() {
		return forkliftNo;
	}
	public void setForkliftNo(String forkliftNo) {
		this.forkliftNo = forkliftNo;
	}
	public String getPk_poundbill() {
		return pk_poundbill;
	}
	public void setPk_poundbill(String pk_poundbill) {
		this.pk_poundbill = pk_poundbill;
	}
	public String getVbdef18() {
		return vbdef18;
	}
	public void setVbdef18(String vbdef18) {
		this.vbdef18 = vbdef18;
	}

	private String averageImpurityWeight;        //平均含杂质重

	public void setAverageImpurityWeight(String averageImpurityWeight){
		this.averageImpurityWeight = averageImpurityWeight;
	}
	public String getAverageImpurityWeight(){
		return this.averageImpurityWeight;
	}
	
	private String averageDewateringWeight;        //平均扣水分重

	public void setAverageDewateringWeight(String averageDewateringWeight){
		this.averageDewateringWeight = averageDewateringWeight;
	}
	public String getAverageDewateringWeight(){
		return this.averageDewateringWeight;
	}
	
	private String averageImpurityRatio;        //平均含杂质比

	public void setAverageImpurityRatio(String averageImpurityRatio){
		this.averageImpurityRatio = averageImpurityRatio;
	}
	public String getAverageImpurityRatio(){
		return this.averageImpurityRatio;
	}
	
	private String averageWaterRatio;        //平均含水分比

	public void setAverageWaterRatio(String averageWaterRatio){
		this.averageWaterRatio = averageWaterRatio;
	}
	public String getAverageWaterRatio(){
		return this.averageWaterRatio;
	}
	
	
	
	
	



	public String getVbdef1() {
		return vbdef1;
	}




	public void setVbdef1(String vbdef1) {
		this.vbdef1 = vbdef1;
	}




	public String getVbdef4() {
		return vbdef4;
	}




	public void setVbdef4(String vbdef4) {
		this.vbdef4 = vbdef4;
	}




	public String getVbdef13() {
		return vbdef13;
	}




	public void setVbdef13(String vbdef13) {
		this.vbdef13 = vbdef13;
	}




	public String getVbdef14() {
		return vbdef14;
	}




	public void setVbdef14(String vbdef14) {
		this.vbdef14 = vbdef14;
	}




	public String getVbdef15() {
		return vbdef15;
	}




	public void setVbdef15(String vbdef15) {
		this.vbdef15 = vbdef15;
	}




	public String getVbdef16() {
		return vbdef16;
	}




	public void setVbdef16(String vbdef16) {
		this.vbdef16 = vbdef16;
	}




	public String getVbdef17() {
		return vbdef17;
	}




	public void setVbdef17(String vbdef17) {
		this.vbdef17 = vbdef17;
	}




	public String getIsFirst() {
		return isFirst;
	}




	public void setIsFirst(String isFirst) {
		this.isFirst = isFirst;
	}




	public String getPk_org() {
		return pk_org;
	}




	public void setPk_org(String pk_org) {
		this.pk_org = pk_org;
	}




	public String getVbdef5() {
		return vbdef5;
	}




	public void setVbdef5(String vbdef5) {
		this.vbdef5 = vbdef5;
	}




	public String getFirstdata() {
		return firstdata;
	}




	public void setFirstdata(String firstdata) {
		this.firstdata = firstdata;
	}




	public String getCmaterialvid() {
		return cmaterialvid;
	}




	public void setCmaterialvid(String cmaterialvid) {
		this.cmaterialvid = cmaterialvid;
	}




	public String getVbdef6() {
		return vbdef6;
	}




	public void setVbdef6(String vbdef6) {
		this.vbdef6 = vbdef6;
	}




	public String getVbdef9() {
		return vbdef9;
	}




	public void setVbdef9(String vbdef9) {
		this.vbdef9 = vbdef9;
	}




	public String getSerialNo() {
		return serialNo;
	}




	public void setSerialNo(String serialNo) {
		this.serialNo = serialNo;
	}




	public String getAveragewaterratio() {
		return averagewaterratio;
	}




	public void setAveragewaterratio(String averagewaterratio) {
		this.averagewaterratio = averagewaterratio;
	}




	public String getName() {
		return name;
	}




	public void setName(String name) {
		this.name = name;
	}




	public String getVdef3() {
		return vdef3;
	}




	public void setVdef3(String vdef3) {
		this.vdef3 = vdef3;
	}




	public String getVdef4() {
		return vdef4;
	}




	public void setVdef4(String vdef4) {
		this.vdef4 = vdef4;
	}




	public String getVdef6() {
		return vdef6;
	}




	public void setVdef6(String vdef6) {
		this.vdef6 = vdef6;
	}




	public String getRowNo() {
		return rowNo;
	}




	public void setRowNo(String rowNo) {
		this.rowNo = rowNo;
	}




	public String getSamplingLocation2() {
		return samplingLocation2;
	}




	public void setSamplingLocation2(String samplingLocation2) {
		this.samplingLocation2 = samplingLocation2;
	}




	public String getPoundNo() {
		return poundNo;
	}




	public void setPoundNo(String poundNo) {
		this.poundNo = poundNo;
	}




	public String getPlanNo() {
		return planNo;
	}




	public void setPlanNo(String planNo) {
		this.planNo = planNo;
	}




	public Boolean getWeiCompleMark() {
		return weiCompleMark;
	}




	public void setWeiCompleMark(Boolean weiCompleMark) {
		this.weiCompleMark = weiCompleMark;
	}




	public String getAuditStatus() {
		return auditStatus;
	}




	public void setAuditStatus(String auditStatus) {
		this.auditStatus = auditStatus;
	}




	public String getLicensePlateNo() {
		return licensePlateNo;
	}




	public void setLicensePlateNo(String licensePlateNo) {
		this.licensePlateNo = licensePlateNo;
	}




	public String getCaseNo() {
		return caseNo;
	}




	public void setCaseNo(String caseNo) {
		this.caseNo = caseNo;
	}




	public String getMaterialpk() {
		return materialpk;
	}




	public void setMaterialpk(String materialpk) {
		this.materialpk = materialpk;
	}




	public String getMaterialcode() {
		return materialcode;
	}




	public void setMaterialcode(String materialcode) {
		this.materialcode = materialcode;
	}




	public String getMaterialVariety() {
		return materialVariety;
	}




	public void setMaterialVariety(String materialVariety) {
		this.materialVariety = materialVariety;
	}




	public String getGoodsName() {
		return goodsName;
	}




	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}




	public String getSupplypk() {
		return supplypk;
	}




	public void setSupplypk(String supplypk) {
		this.supplypk = supplypk;
	}




	public String getSupplycode() {
		return supplycode;
	}




	public void setSupplycode(String supplycode) {
		this.supplycode = supplycode;
	}




	public String getSupplyUnit() {
		return supplyUnit;
	}




	public void setSupplyUnit(String supplyUnit) {
		this.supplyUnit = supplyUnit;
	}




	public String getPurchpk() {
		return purchpk;
	}




	public void setPurchpk(String purchpk) {
		this.purchpk = purchpk;
	}




	public String getPurchcode() {
		return purchcode;
	}




	public void setPurchcode(String purchcode) {
		this.purchcode = purchcode;
	}




	public String getPurchasing() {
		return purchasing;
	}




	public void setPurchasing(String purchasing) {
		this.purchasing = purchasing;
	}




	public String getCustomsNo() {
		return customsNo;
	}




	public void setCustomsNo(String customsNo) {
		this.customsNo = customsNo;
	}




	public String getTotalEntryNo() {
		return totalEntryNo;
	}




	public void setTotalEntryNo(String totalEntryNo) {
		this.totalEntryNo = totalEntryNo;
	}




	public String getRealNo() {
		return realNo;
	}




	public void setRealNo(String realNo) {
		this.realNo = realNo;
	}




	public String getTotalPackageNo() {
		return totalPackageNo;
	}




	public void setTotalPackageNo(String totalPackageNo) {
		this.totalPackageNo = totalPackageNo;
	}




	public String getPk_ew() {
		return pk_ew;
	}




	public void setPk_ew(String pk_ew) {
		this.pk_ew = pk_ew;
	}




	public String getVcode() {
		return vcode;
	}




	public void setVcode(String vcode) {
		this.vcode = vcode;
	}




	public String getMeterPoint() {
		return meterPoint;
	}




	public void setMeterPoint(String meterPoint) {
		this.meterPoint = meterPoint;
	}




	public String getEstimatedTare() {
		return estimatedTare;
	}




	public void setEstimatedTare(String estimatedTare) {
		this.estimatedTare = estimatedTare;
	}




	public String getEstimatedWeight() {
		return estimatedWeight;
	}




	public void setEstimatedWeight(String estimatedWeight) {
		this.estimatedWeight = estimatedWeight;
	}




	public String getGrossWeight() {
		return grossWeight;
	}




	public void setGrossWeight(String grossWeight) {
		this.grossWeight = grossWeight;
	}




	public String getTareWeight() {
		return tareWeight;
	}




	public void setTareWeight(String tareWeight) {
		this.tareWeight = tareWeight;
	}




	public String getNetWeight() {
		return netWeight;
	}




	public void setNetWeight(String netWeight) {
		this.netWeight = netWeight;
	}




	public String getShortWeight() {
		return shortWeight;
	}




	public void setShortWeight(String shortWeight) {
		this.shortWeight = shortWeight;
	}




	public String getSinglePieceWeight() {
		return singlePieceWeight;
	}




	public void setSinglePieceWeight(String singlePieceWeight) {
		this.singlePieceWeight = singlePieceWeight;
	}




	public String getGrossWeightTime() {
		return grossWeightTime;
	}




	public void setGrossWeightTime(String grossWeightTime) {
		this.grossWeightTime = grossWeightTime;
	}




	public String getTareWeightTime() {
		return tareWeightTime;
	}




	public void setTareWeightTime(String tareWeightTime) {
		this.tareWeightTime = tareWeightTime;
	}




	public String getColumnNo() {
		return columnNo;
	}




	public void setColumnNo(String columnNo) {
		this.columnNo = columnNo;
	}




	public String getLayerNo() {
		return layerNo;
	}




	public void setLayerNo(String layerNo) {
		this.layerNo = layerNo;
	}




	public String getSamplingLocation() {
		return samplingLocation;
	}


	public String getVdef5() {
		return vbdef5;
	}




	public void setVdef5(String vbdef5) {
		this.vbdef5 = vbdef5;
	}




	public void setSamplingLocation(String samplingLocation) {
		this.samplingLocation = samplingLocation;
	}




	@Override
	public String getBpmBillCode() {
		// TODO Auto-generated method stub
		return  DateUtil.format(new Date(), "yyyyMMddHHmmss"+new Random().nextInt(10))   ;
	}

}
